<?php

namespace Database\Factories;

use App\Models\ProductAttrValue;
use Illuminate\Database\Eloquent\Factories\Factory;

class ProductAttrValueFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = ProductAttrValue::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'product_id' => $this->faker->numberBetween(1, 50),
            'suk' => $this->faker->word,
            'stock' => $this->faker->randomNumber(3, true),
            'sales' => $this->faker->randomNumber(3, true),
            'price' => $this->faker->randomNumber(3, true),
            'image' => $this->faker->word . 'png',
            'unique' => $this->faker->word,
            'cost' => $this->faker->randomNumber(3, true),
            'bar_code' => $this->faker->randomNumber(6, true),
            'ot_price' => $this->faker->randomNumber(2, true),
            'vip_price' => $this->faker->randomNumber(2, true),
            'weight' => $this->faker->randomNumber(2, true),
            'volume' => $this->faker->randomNumber(3, true),
            'brokerage' => 0.2,
            'brokerage_two' => 0.2,
            'type' => 'noActivity',
            'quota' => $this->faker->randomNumber(3, true),
            'quota_show' => $this->faker->randomNumber(3, true),
            'deleted_at' => null,
            'created_at' => $this->faker->time('Y-m-d H:i:s', 'now'),
            'updated_at' => $this->faker->time('Y-m-d H:i:s', 'now'),
        ];
    }
}
